package Model.Entity;

import SqlGenerator.Column;
import SqlGenerator.Entity;
import SqlGenerator.ID;


@Entity("coupons")
public class Coupons   {
    @ID
    @Column(length = 20)
    private Long id;
    @Column(length = 20)
    private Long commodityid;//FK
    @Column(length = 12)
    private Double requirementprice;
    @Column(length = 12)
    private Double minusprice;
    @Column(length = 10)
    private Integer allowance;//该优惠券剩余

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {

        return id;
    }

    public void setAllowance(Integer allowance) {
        this.allowance = allowance;
    }

    public Integer getAllowance() {

        return allowance;
    }

    public void setCommodityid(Long commodityid) {
        this.commodityid = commodityid;
    }

    public void setRequirementprice(Double requirementprice) {
        this.requirementprice = requirementprice;
    }

    public void setMinusprice(Double minusprice) {
        this.minusprice = minusprice;
    }

    public Long getCommodityid() {

        return commodityid;
    }

    public Double getRequirementprice() {
        return requirementprice;
    }

    public Double getMinusprice() {
        return minusprice;
    }
}
